package com.wu.demo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wu.demo.entity.SysLogininfor;
import com.wu.demo.mapper.SysLogininforMapper;
import com.wu.demo.service.ISysLogininforService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 * 系统访问记录 服务实现类
 * </p>
 *
 * @author wu
 * @since 2020-12-14
 */
@Service
public class SysLogininforServiceImpl extends ServiceImpl<SysLogininforMapper, SysLogininfor> implements ISysLogininforService {

    @Transactional(propagation = Propagation.REQUIRES_NEW,isolation = Isolation.READ_COMMITTED)
    @Override
    public void saveLoginInfo(SysLogininfor logininfor){
        save(logininfor);
        int a = 10/0;
    }
}
